package com.lagou.dao;

import com.lagou.pojo.User;
import org.dom4j.DocumentException;

import java.util.List;

/**
 * @author 10843
 */
public interface IUserDao {
    /**
     * 查询所有
     * @return
     */
    List<User>  findAll() throws Exception;

    /**
     * 根据条件进行用户查询
     */
    User findByCondition(User user) ;

    int insertUser(User user);


    int updateUser(User user);

    int deleteUser(int id);
}
